
import com.raspoid.Tools;
import com.raspoid.additionalcomponents.LEDPWM;
import com.raspoid.additionalcomponents.PCA9685;
import com.raspoid.additionalcomponents.PCA9685.PCA9685Channel;


public class Led {

	public static void main(String[] args) throws InterruptedException {
		LEDPWM led = new LEDPWM(new PCA9685(), PCA9685Channel.CHANNEL_00);
	    
	    while(true) {
	        for(int i=0; i<100; i++) {
	            led.setIntensity(i);
	            Tools.sleepMilliseconds(5000);
	        }
	        
	        for(int i = 100; i > 0; i--) {
	            led.setIntensity(i);
	            Tools.sleepMilliseconds(5000);
	        }
	    }
	}
}
